package com.information.manage.basic.audit.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class AuditModelDetailDto {


    @ApiModelProperty(value = "自增id")
    private Long id;

    @ApiModelProperty(value = "审核模板名称")
    private String name;

    /**
     * @see com.information.manage.basic.audit.constant.AuditTypeEnum
     */
    @ApiModelProperty("审核类型枚举")
    private String type;

    @ApiModelProperty("是否启用：0/no 1/yes")
    private Integer used;

    @ApiModelProperty("自动去重：0/no 1/yes")
    private Integer duplicateRemoval;

    @ApiModelProperty("自动通过：0/no 1/yes")
    private Integer autoPass;

    @ApiModelProperty("是否系统默认模板：0/no 1/yes")
    private Integer isSystem;

    @ApiModelProperty("创建人ID")
    private String createUserId;

    @ApiModelProperty("创建人名称")
    private String createUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    /**
     * 审核层级详情
     */
    private List<AuditLevelDetailDto> auditLevelDetailDtoList;
}
